Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unyt_array.argsort. Fixes #51 #52

Merged
merged 3 commits into from
Sep 3, 2018
Merged

Conversation

ngoldbaum
Copy link
Member

There's a doctest in the docstring that should suffice as a test. Let's see what the coverage report says. ping @brittonsmith

It turns out numpy has an internal hook to call obj.argsort if it's defined for an object passed to np.argsort. Not sure why this behaves differently in yt.units, in principle this could be backported there.

@ngoldbaum ngoldbaum merged commit dcedc20 into yt-project:master Sep 3, 2018
@brittonsmith
Copy link
Member

Thanks, @ngoldbaum, this looks good to me. It would be great to backport this to yt.units.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants